package com.ch.web.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.ch.web.entity.user.XyTokenEntity;
import com.ch.web.entity.user.XyUserEntity;
import com.ch.web.utils.PageUtils;
import com.ch.web.utils.R;

import java.util.Map;
/**
 * @author chenHao
 * @email 1429542285@qq.com
 * @date 2022-04-27 22:59:18
 */
public interface XyTokenService extends IService<XyTokenEntity> {

    PageUtils queryPage(Map<String, Object> params);

    R createToken(XyUserEntity entity) throws Exception;
    Long getUserIdByToken(String token);
}

